function generateRandomString(length) {
    const characters = "abcdefghijklmnopqrstuvwxyz"; // 字母表
    let result = "";
  
    for (let i = 0; i < length; i++) {
      const randomIndex = Math.floor(Math.random() * characters.length);
      result += characters.charAt(randomIndex);
    }
  
    return result;
  }

  export {generateRandomString}